using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class GamePanel : BasePanel
{
    [SerializeField] private Button menuListButton;
    
    
    //
    private void Start()
    {
        menuListButton.onClick.AddListener(MenuListAction);
        Camera.main.GetComponent<AudioSource>().volume = AudioVolume.Instance.GetAudioVolumeBGM();
    }

    // 
    private void MenuListAction()
    {
        // 打卡菜单列表
        UIManager.Instance.OpenPanel(UIConst.PANEL_MENULIST);
        // 时间暂停
        Time.timeScale = 0f;
    }
}
